package com.gxa.service.discrepancy.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.entity.discrepancy.ComingVisitor;
import com.gxa.service.discrepancy.ComingVisitorService;
import com.gxa.mapper.discrepancy.ComingVisitorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【coming_visitor(即将到访访客)】的数据库操作Service实现
* @createDate 2022-10-14 13:14:58
*/
@Service
public class ComingVisitorServiceImpl extends ServiceImpl<ComingVisitorMapper, ComingVisitor>
    implements ComingVisitorService{

    @Autowired
    private ComingVisitorMapper mapper;


    @Override
    public int getOrderCount() {
        Long aLong = mapper.selectCount(null);

        return Integer.parseInt(aLong.toString());
    }

    @Override
    public int getComingCount() {
        return mapper.selectComingCount();
    }

    @Override
    public int getLeavingCount() {
        return mapper.selectLeavingCount();
    }

    @Override
    public int gerUncomeCount() {
        return mapper.selectUnComeCount();
    }
}




